﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewBusiness;
using NewBusiness.Domain;
using NewBusiness.Domain.Queries;
using NewBusiness.Domain.Uow;
using NewBusiness.Domain.Uow.Data;

namespace NewBusiness.Domain
{
    public interface IBookmarkContext
    {
        IBookmarkQueries BookmarkQueries { get; }
        //string[] GetCollectionsMDB();
    }

    public class BookmarkContext : DomainContext, IBookmarkContext
    {
        public IBookmarkQueries BookmarkQueries { get; private set; }
        public BookmarkContext(IUow uow, ISession session, IBookmarkQueries bookmarkQueries, MongoDB.Driver.MongoDatabase mdb)
            : base(uow, session, mdb )
        {
            this.BookmarkQueries = bookmarkQueries;
            //this.
        }

        /// <summary>
        /// Изменяет существующую
        /// </summary>
        /// <param name="b"></param>
        public void UpsetBookmark(Bookmark b)
        {

        }
    }
}
